package com.cw.beans;

public class Maintain {
    private int id;
    private  String asset_name;//维修名称
    private String  maintain_description;//维修描述
    private  int asset_id;//维修的资产id
    private  String maintenance_completion_time;//回归日期
    private  String maintenance_registration_time;//报修日期
   private   int    state_id;//状态
    private  State state;//状态

    public String getAsset_name() {
        return asset_name;
    }

    public void setAsset_name(String asset_name) {
        this.asset_name = asset_name;
    }

    public Maintain(int asset_id, int id, String maintain_description, String maintenance_completion_time, String maintenance_registration_time, State state, int state_id) {
        this.asset_id = asset_id;
        this.id = id;
        this.maintain_description = maintain_description;
        this.maintenance_completion_time = maintenance_completion_time;
        this.maintenance_registration_time = maintenance_registration_time;
        this.state = state;

        this.state_id = state_id;
    }

    public int getAsset_id() {
        return asset_id;
    }
    public void setAsset_id(int asset_id) {
        this.asset_id = asset_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMaintain_description() {
        return maintain_description;
    }

    public void setMaintain_description(String maintain_description) {
        this.maintain_description = maintain_description;
    }

    public String getMaintenance_completion_time() {
        return maintenance_completion_time;
    }

    public void setMaintenance_completion_time(String maintenance_completion_time) {
        this.maintenance_completion_time = maintenance_completion_time;
    }

    public String getMaintenance_registration_time() {
        return maintenance_registration_time;
    }

    public void setMaintenance_registration_time(String maintenance_registration_time) {
        this.maintenance_registration_time = maintenance_registration_time;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public int getState_id() {
        return state_id;
    }

    public void setState_id(int state_id) {
        this.state_id = state_id;
    }

    public Maintain() {
    }

    public Maintain(int asset_id, String asset_name, int id, String maintain_description,
                    String maintenance_completion_time, String maintenance_registration_time, State state, int state_id) {
        this.asset_id = asset_id;
        this.asset_name = asset_name;
        this.id = id;
        this.maintain_description = maintain_description;
        this.maintenance_completion_time = maintenance_completion_time;
        this.maintenance_registration_time = maintenance_registration_time;
        this.state = state;
        this.state_id = state_id;
    }

    @Override
    public String toString() {
        return "Maintain{" +
                "asset_id=" + asset_id +
                ", id=" + id +
                ", asset_name='" + asset_name + '\'' +
                ", maintain_description='" + maintain_description + '\'' +
                ", maintenance_completion_time='" + maintenance_completion_time + '\'' +
                ", maintenance_registration_time='" + maintenance_registration_time + '\'' +
                ", state_id=" + state_id +
                ", state=" + state +
                '}';
    }
}
